package com.lbx.controller;

import com.lbx.mapper.RouteMapper;
import com.lbx.util.CommonRes;
import com.lbx.util.ResUtil;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Route)表控制层
 *
 * @author lbx
 * @since 2021-06-18 14:48:38
 */
@RestController
@CrossOrigin
@RequestMapping("vue-element-admin")
public class RouteController {
    /**
     * 服务对象
     */
    @Resource
    private RouteMapper routeMapper;
    
    
    @RequestMapping("/routes")
    public CommonRes<Object> routes(){
        return ResUtil.successRes(20000,"success",routeMapper.queryAll(null));
    }
}
